<!--
 * @Description: 文本规则
 * @Author: charles
 * @Date: 2021-08-11 10:16:09
 * @LastEditors: charles
 * @LastEditTime: 2021-08-11 11:00:30
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>文本规则</title>
  <style>
    html {
      font: 14px/1.4 '宋体','微软雅黑';
      color: #333;
    }
    a {
      text-decoration:none;
      color: #333;
    }
    .one {
      text-align: center;
      text-decoration-line:line-through;
      text-decoration-style: double;
      text-decoration-color: lightsalmon;
    }
    .two {
      text-indent: 2em;
      /* 缩进 */
      text-shadow: 3px 3px 3px gray; 
    }
    .three {
      text-transform: capitalize;
      /* 首字母大写，全部转化为大写uppercase，全部转化为小写lowercase */
    }
    .box {
      width: 300px;
      background-color: lightsalmon;

      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      /* 当显示区域不够显示全部文字时，ellipsis表示省略号 */
    }
  </style>
</head>
<body>
  <div class="one">我校获批教育部首批新文科研究与实践项目两项</div>
  <div class="two">我校荣获首届全国教材建设奖（本科）</div>
  <div>
    <a href="https://www.baidu.com">百度一下</a>
  </div>
  <div class="three"> hello world </div>

  <div class="box">
    矿业工程学院成功举办2021年遥感综合实习专家报告会
  </div>
</body>
</html>